#ifndef COMMONTCP_H_
#define COMMONTCP_H_

#define BORRA_BUFFER    while(getchar()!= '\n');

void sndTCPAns(int newsockfd, int code);
int rcvTCPAns(int newsockfd);

/* Envia Informacion */
int send_data_TCP (int fd, char * s_msg, int size);


int readsizeTCP (int fd);
int readcomTCP (int fd);

int snd_file_TCP (int newsockfd, char * fname, int isdir);
int walkDirTCP(char *path, char *relPath, int newsockfd);


#endif /*COMMONTCP_H_*/
